//
//  ViewController.m
//  约束xb
//
//  Created by dllo on 16/7/28.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    // 添加一个uiView 在self.view 的中心点,通过让水平垂直居中(第二个按钮),都是0(爆红原因:缺少约束,width宽,height高第三个按钮)
    //
    // 当x,y,width,height都绑定约束就不会爆红
    // 再添加一个uiview 是它全屏,只要将四个约束top left bootom right 设置为0即可,然后更新update frames 
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
